package com.ruoyi.swap.realtime.ticker.mapper;

import java.util.List;
import com.ruoyi.swap.realtime.ticker.domain.SwapTickerRealtimeData;
import com.ruoyi.swap.realtime.ticker.domain.VO.SwapTickerRealtimeDataVO;
import org.apache.ibatis.annotations.Param;

/**
 * 实时TickerMapper接口
 * 
 * @author saumell
 * @date 2024-08-03
 */
public interface SwapTickerRealtimeDataMapper 
{
    /**
     * 查询实时Ticker
     * 
     * @param id 实时Ticker主键
     * @return 实时Ticker
     */
    public SwapTickerRealtimeDataVO selectSwapTickerRealtimeDataById(Integer id);

    /**
     * 查询实时Ticker列表
     * 
     * @param swapTickerRealtimeData 实时Ticker
     * @return 实时Ticker集合
     */
    public List<SwapTickerRealtimeDataVO> selectSwapTickerRealtimeDataList(SwapTickerRealtimeDataVO swapTickerRealtimeData);

    /**
     * 新增实时Ticker
     * 
     * @param swapTickerRealtimeData 实时Ticker
     * @return 结果
     */
    public int insertSwapTickerRealtimeData(SwapTickerRealtimeData swapTickerRealtimeData);

    /**
     * 修改实时Ticker
     * 
     * @param swapTickerRealtimeData 实时Ticker
     * @return 结果
     */
    public int updateSwapTickerRealtimeData(SwapTickerRealtimeData swapTickerRealtimeData);

    /**
     * 删除实时Ticker
     * 
     * @param id 实时Ticker主键
     * @return 结果
     */
    public int deleteSwapTickerRealtimeDataById(Integer id);

    /**
     * 批量删除实时Ticker
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSwapTickerRealtimeDataByIds(Integer[] ids);

    List<SwapTickerRealtimeDataVO> selectSwapAllData();

    Integer queryCurryNumber(@Param("currencyPair") String currencyPair);
}
